﻿using System;

namespace BizElements.Web
{
    /// <summary>Dummy properties. All return nulls which means that captions defined through search filter properties will be shown. SearchView requires a text-source instance. This is used as default.</summary>
    internal class NullSearchViewTextSource : ISearchViewTextSource
    {
        #region Singleton.

        private NullSearchViewTextSource()
        {
        }

        static NullSearchViewTextSource instance = new NullSearchViewTextSource();

        public static NullSearchViewTextSource GetInstance()
        {
            return instance;
        }

        #endregion

        #region Dummy properties. All return nulls.

        public string RecordCountFormat { get { return null; } }

        #endregion
    }
}